<!-- 合同存档清单 -->
<template>
	<div class="t-wp" v-loading="state.loading">
		<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
			<el-form class="text-right" :inline="true">
				<el-form-item>
					<el-button type="primary" @click="handleQuery()"> 查询 </el-button>
				</el-form-item>
			</el-form>
		</el-card>
		<el-card class="full-table" shadow="hover" style="margin-top: 8px">
			<el-table :data="state.list" style="width: 100%" border>
				<el-table-column type="index" label="序号" width="55" align="center" />
				<el-table-column prop="contrackCode" label="编号" align="center" show-overflow-tooltip />
				<el-table-column prop="contrackName" label="合同名称" align="center" show-overflow-tooltip />
				<el-table-column prop="signedDeprt" label="合同签订部门" align="center" show-overflow-tooltip />
				<el-table-column prop="providerName" label="合同签订方名称" align="center" show-overflow-tooltip />
				<el-table-column prop="signedDate" label="签订时间" align="center" show-overflow-tooltip />
				<el-table-column prop="description" label="主要内容" align="center" show-overflow-tooltip />
			</el-table>
		</el-card>
	</div>
</template>

<script setup name="SupplierManage">
import { onMounted, reactive, ref } from 'vue';
import {useRouter, useRoute} from "vue-router";
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
import {$get, $post, $postparams} from '/@/utils/request';

const router = useRouter();
const route = useRoute();

const state = reactive({
	loading: false,

	list: [],
});

onMounted(async () => {
	handleQuery();
});

// 查询操作
const handleQuery = async () => {
	state.loading = true;
	var res = await $get('/projectService/getauditrecord/0');
	state.list = res.result;
	state.loading = false;
};
</script>

<style lang="scss" scoped>
.t-wp {
	
}
</style>
